package com.atguigu.controller;

import com.atguigu.service.RobotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/robot")
public class HelloController {

    @Autowired
    private RobotService robotService;
@GetMapping("/h01")
    public String hello()
    {
        return robotService.sayHello();
    }
}
